Interview Questions and Answer
Options:
a. ":empty()"
b. "$.trim()"
c. Both
Reveal Answer
Options:
a. $("p").html("<b>this is bold</b>");
b. $("p").text("<b>this is bold</b>");
c. Both
d. None
Reveal Answer
Options:
a. $("input: checkbox").val()
b. $("input:checkbox.checked").val()
c. $("input:checkbox:checked").val()
d. None
Reveal Answer
Options:
a. class
b. object
c. Array
d. All
Reveal Answer
Options:
a. $("input: text).val("Hello");
b. $("input: text[name="Hello"]").val();
c. $("input: text[name='txt']").val("Hello");
d. $("input:[name='txt']").val("Hello");
Reveal Answer
Options:
a. $("button").clear()
b. $("button").removeAttr()
c. $("button").remove()
d. All
Reveal Answer
Options:
a. append
b. prepend
c. appendTo
d. prependTo
Reveal Answer
Options:
a. $("<p>this is after paragraph</p>").append("div");
b. $("div").append("<p>this is after paragraph</p>");
c. $("div").append."<p>this is after paragraph</p>";
d. None
Reveal Answer
Bestdotnet google plus